class Bot extends Player {
    private static final int NUM_OF_RANKS = 13;
    private static final int HAND_SIZE = 5;
	Bot(int startamount) {
		super(startamount);
	}

	@Override
	public int[] picks() {
	    int myrank = evaluateHand();
	    int[] myranks = getHand().getRanks();
	    int[] result;
	    int amount = 0;
	    if (myrank == 4 && myrank == 3) {
	        amount = 0;
	        result = new int[amount];
	    } 
	    else {
	        amount = 4;
	        result = new int[amount];
	        result[0] = 0;
	        result[1] = 1;
	        result[2] = 2;
	        result[3] = 3;
	    }
		return result;
	}
	
	public int getDecision(int maxbet, boolean allIn) throws BadugiException {
		int myrank = evaluateHand();
	    int bet;
	    if (allIn) {
	        if (myrank >= 4) {
	     //       bet();
	            bet = getCash();
	        }
	        else {
	            fold();
	            bet = -1;
	        }
	    }
	    else {
    	    if (myrank == 4) {                 // bet/raise
    	 //       bet();
    	    	bet = (maxbet - myBet()) + getCash()/2;
    	    }
    	    else if (myrank == 3) {               // bet/raise
    	//       bet();
    	        bet = (maxbet - myBet()) + getCash()/3;
    	    }
    	    else if (myrank == 2) {            // check/call
      //          check();
                bet = maxbet - myBet();
            }
    	    else {                                 // check/fold
    	        if (maxbet == myBet()) {
    	//            check();
    	            bet = 0;
    	        }
    	        else {
    	            fold();
    	            bet = -1;
    	        }
    	    }
	    }
	    if (bet >= getCash()) {
	        bet = getCash();
	    }
	    else if (bet >= 0) {
	        addToMyBet(bet);
	        addToCash(-bet);
	    }
	    return bet;
	}
}
